home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Games / Doom / ADoom-0.8 / ADoom_src / r_draw.h < prev    next >
C/C++ Source or Header  |  1998-06-24  |  3KB  |  118 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    System specific interface stuff.
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_DRAW__
  24. #define __R_DRAW__
  25.  
  26. #include "macros.h"
  27.  
  28. #ifdef __GNUG__
  29. #pragma interface
  30. #endif
  31.  
  32.  
  33. extern lighttable_t*    dc_colormap;
  34. extern int        dc_x;
  35. extern int        dc_yl;
  36. extern int        dc_yh;
  37. extern fixed_t        dc_iscale;
  38. extern fixed_t        dc_texturemid;
  39.  
  40. // first pixel in a column
  41. extern byte*        dc_source;        
  42.  
  43.  
  44. // The span blitting interface.
  45. // Hook in assembler or system specific BLT
  46. //  here.
  47. extern void R_DrawColumn_040 (void);
  48. extern void R_DrawColumn_060 (void);
  49. extern void R_DrawColumnLow (void);
  50.  
  51. // The Spectre/Invisibility effect.
  52. void    R_DrawFuzzColumn (void);
  53. void     R_DrawFuzzColumnLow (void);
  54.  
  55. // Draw with color translation tables,
  56. //  for player sprite rendering,
  57. //  Green/Red/Blue/Indigo shirts.
  58. void    R_DrawTranslatedColumn (void);
  59. void    R_DrawTranslatedColumnLow (void);
  60.  
  61. void
  62. R_VideoErase
  63. ( unsigned    ofs,
  64.   int        count );
  65.  
  66. extern int        ds_y;
  67. extern int        ds_x1;
  68. extern int        ds_x2;
  69.  
  70. extern lighttable_t*    ds_colormap;
  71.  
  72. extern fixed_t        ds_xfrac;
  73. extern fixed_t        ds_yfrac;
  74. extern fixed_t        ds_xstep;
  75. extern fixed_t        ds_ystep;
  76.  
  77. // start of a 64*64 tile image
  78. extern byte*        ds_source;        
  79.  
  80. extern byte*        translationtables;
  81. extern byte*        dc_translation;
  82.  
  83.  
  84. // Span blitting for rows, floor/ceiling.
  85. // No Sepctre effect needed.
  86. extern void R_DrawSpan_040 (void);
  87. extern void R_DrawSpan_060 (void);
  88.  
  89. // Low resolution mode, 160x200?
  90. void     R_DrawSpanLow (void);
  91.  
  92. void
  93. R_InitBuffer
  94. ( int        width,
  95.   int        height );
  96.  
  97.  
  98. // Initialize color translation tables,
  99. //  for player rendering etc.
  100. void    R_InitTranslationTables (void);
  101.  
  102.  
  103.  
  104. // Rendering function.
  105. void R_FillBackScreen (void);
  106.  
  107. // If the view size is not full screen, draws a border around it.
  108. void R_DrawViewBorder (void);
  109.  
  110.  
  111.  
  112. #endif
  113. //-----------------------------------------------------------------------------
  114. //
  115. // $Log:$
  116. //
  117. //-----------------------------------------------------------------------------
  118.